namespace EntityFrameworkModel
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class hkb_Organization
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public hkb_Organization()
        {
            hkb_RequirementBook = new HashSet<hkb_RequirementBook>();
            hkb_OrganizationQualification = new HashSet<hkb_OrganizationQualification>();
            hkb_OrganizationDayStatistics = new HashSet<hkb_OrganizationDayStatistics>();
            hkb_OrganizationUser = new HashSet<hkb_OrganizationUser>();
        }

        [Key]
        public long OrgId { get; set; }

        [StringLength(80)]
        public string Name { get; set; }

        public int Province { get; set; }

        public int City { get; set; }

        public int? District { get; set; }

        [StringLength(50)]
        public string ReceiveWeek { get; set; }

        public long? MaxCountPerDay { get; set; }

        public bool? IsOpen { get; set; }

        [StringLength(10)]
        public string CreateUser { get; set; }

        public DateTime? CreateTime { get; set; }

        public bool? IsDelete { get; set; }

        [StringLength(10)]
        public string UpdateUser { get; set; }

        public DateTime? UpdateTime { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<hkb_RequirementBook> hkb_RequirementBook { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<hkb_OrganizationQualification> hkb_OrganizationQualification { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<hkb_OrganizationDayStatistics> hkb_OrganizationDayStatistics { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<hkb_OrganizationUser> hkb_OrganizationUser { get; set; }
    }
}
